package com.huang.Service;

import com.huang.Pojo.Product;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient(value = "service-product")
public interface FeignClientService {
    //商品信息查询
    @RequestMapping("/product/{pid}")
    public Product product(@PathVariable("pid") Integer pid);

    @RequestMapping("/product/reduceInventory/{pid}/{number}")
    public void reduceInventory(@PathVariable("pid") Integer pid, @PathVariable("number") Integer number);
}
